/******************************************************************************
** @file	ShareTest.cpp
** @author  Arturo Aguilar Tapia
**
** @date	Agost 20, 2010
**
** @desc	This test must list all the share resources and proove that 
**          the defualt shares(available in any windows version) exist 
**          in the retrieved WMI_Reader result.
*			
**
******************************************************************************/

#include "../Unit--/unit--.h"
#include "wmi_reader.h"
#include "WMI_Registry.h"
#include "WMI_Result.h"
#include "WMI_FileDirectory.h"
#include "string"
#include <comdef.h>
#include <Wbemidl.h>

# pragma comment(lib, "wbemuuid.lib")

using namespace unit_minus;

testSuite(WMIReaderSuite);

testCase(ShareTest, WMIReaderSuite)
{
	cout << "---------- Start WMIReaderTest::getShareTest ----------" << endl;

	WMI_Result<WMI_Share> share;
    WMI_Reader::getShares(share);
	
	cout << "\n------------------------------------------------------------------" << endl;
	cout << "|                         LIST OF SHARES                         |" << endl;
	cout << "------------------------------------------------------------------" << endl;
	share.showObjects();

	

    cout << "---------- End WMIReaderTest::getShareTest ----------" << endl << endl;
    system("PAUSE");
}